/*获取 数据*/
export function getData(obj) {
  let reqData;
  reqData = obj.method == "POST" ? "body" : "params";
  var objs = {
    url: obj.url,
    method: obj.method
  };
  if (obj.method == "POST") {
    objs.body = obj.data;
  } else {
    objs.params = obj.data
  }
  obj.tar.loading=true
  return obj.tar.$http(objs)
}

/*获取短信验证码 带 图片验证码*/
export function getSmsCode(self, obj) {
  return self.$http.get("api/api/getSmsCode", obj);
}
